import request from '@/utils/request'

//带条件分页查询轮播图列表
export const getSwiperList = params => {
  return request({
    url: 'banner/list',
    params
  })
}
//增加轮播图
export const AddSwiper = data => {
  return request({
    url: 'banner/add',
    method: 'POST',
    data
  })
}
//修改轮播图
export const updateSwiper = data => {
  return request({
    url: 'banner/update',
    method: 'POST',
    data
  })
}
//删除轮播图
export const deleteSwiper = bannerid => {
  return request({
    url: `banner/delete/${bannerid}`,
    method: 'DELETE'
  })
}
